/**
* @author AlbertDarren
* @contact 2563491540@qq.com
*/
#include <iostream>

using namespace std;

int main_11()
{
    int n,m,c,r;
    scanf("%d%d",&n,&m);
    c=4*n-m;
    r=m-2*n;
    if (c%2==0&&r%2==0&&c>=0&&r>=0)
    {
        printf("%d %d\n",c/2,r/2);
    }
    else
    {
        printf("No answer\n");
    }
	return 0;
}
